package com.practise;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

//从键盘读入10个整数，然后从大到小输出。
public class PractiseDemo5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> list = new ArrayList<>();
       // int[] arr = new int[10];
        for (int i = 0; i < 10; i++) {
            int i1 = sc.nextInt();
            list.add(i1);
        }
        /*for (Integer integer : list) {
            System.out.println("integer = " + integer);
        }*/
        Collections.sort(list);
        Collections.reverse(list);
        for (Integer integer : list) {
            System.out.println("integer = " + integer);
        }
    }

}

